package frobagroup.entities.frontEnd;

import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

import java.util.Date;

/**
 * Created by Tinsley on 2016/7/15.
 */
@Data
@NoArgsConstructor
@Document(collection = "user")
public class User {
    @Id
    private String id;
    private String email;
    private String username;
    private String password;
    private Date createTime;
    private Date updateTime;
    private Date lastLoginTime;
    public User(String email,String password,String username){
        this.email = email;
        this.password = password;
        this.username = username;
    }
}
